#https://likegeeks.com/3d-plotting-in-python/
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111,projection = '3d')
#scatter

x = [1,2,3,10]
y = [1,2,3,14]
z = [1,2,3,17]

ax.scatter(x,y,z)

#continuous line
'''
x = np.linspace(-10,10,100)
y = np.linspace(-10,10,100)
z = -(x + y)
ax.plot(x,y,z)
'''
x = np.linspace(-5,5,100)
y = np.linspace(-5,5,100)
X,Y = np.meshgrid(x,y)
Z = X**2 + Y**2
ax.plot_surface(X, Y, Z)
plt.show()
